home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / games2 / rotise12.zip / PROTO.H < prev    next >
C/C++ Source or Header  |  1992-05-09  |  4KB  |  101 lines

  1. #include "rdb.h"
  2. #include "bb_pdb.h"
  3. #include "avl.h"
  4.  
  5. /* rotise.c */
  6. int main PROTO( (int, char **) );
  7. void usage PROTO( (void) );
  8. BOOL parse_file PROTO( (char *) );
  9. void rdb_error PROTO( (char *, char *) ); 
  10.  
  11. /* string.c */
  12. int tkline PROTO( (char *, char *, char **, int, char *, char *) );
  13. char *gettoken PROTO( (char *, char *, int, char *, char *) );
  14. int gettkline PROTO( ( FILE *, char *, int, int *, char **, int) );
  15. int getline PROTO( (FILE *, char *, int) );
  16. int strsicmp PROTO( (char *, char *) );
  17. #ifndef    HAVE_STRICMP
  18. char *strupr PROTO( ( char * ) );
  19. #endif
  20.  
  21. /* stenog.c */
  22. BOOL comment PROTO( ( int tokcnt, char *tokens[] ) );
  23. BOOL cost PROTO( ( int tokcnt, char *tokens[] ) );
  24. BOOL interval PROTO( ( int tokcnt, char *tokens[] ) );
  25. BOOL bstats PROTO( ( int tokcnt, char *tokens[] ) );
  26. BOOL oposf PROTO( ( int tokcnt, char *tokens[] ) );
  27. BOOL pstats PROTO( ( int tokcnt, char *tokens[] ) );
  28. BOOL salunit PROTO( ( int tokcnt, char *tokens[] ) );
  29. BOOL slot PROTO( ( int tokcnt, char *tokens[] ) );
  30.  
  31. /* realp.c */
  32. BOOL hide PROTO( ( int tokcnt, char *tokens[] ) );
  33. BOOL status PROTO( ( int tokcnt, char *tokens[] ) );
  34.  
  35. /* roster.c */
  36. BOOL league PROTO( (int token, char *tokens[]) );
  37. BOOL owner PROTO( (int token, char *tokens[]) );
  38. BOOL add PROTO( (int token, char *tokens[]) );
  39. BOOL create PROTO( (int token, char *tokens[]) );
  40. BOOL team PROTO( (int token, char *tokens[]) );
  41. BOOL minors PROTO( (int token, char *tokens[]) );
  42.  
  43. /* transact.c */
  44. BOOL move PROTO( (int token, char *tokens[]) );
  45. BOOL release PROTO( (int token, char *tokens[]) );
  46. BOOL claim PROTO( (int token, char *tokens[]) );
  47. BOOL reserve PROTO( (int token, char *tokens[]) );
  48. BOOL activate PROTO( (int token, char *tokens[]) );
  49. BOOL trade PROTO( (int token, char *tokens[]) );
  50. BOOL expand PROTO( (int token, char *tokens[]) );
  51.  
  52. /* report.c */
  53. void report PROTO( (void) );
  54. void freelist PROTO( (char *) );
  55. void worksheet PROTO( (char *) );
  56.  
  57. /* rdb_player.c */
  58. BOOL rdb_add_player PROTO( (RDB_PLAYER *rp, int tokcnt, char *tokens[]) );
  59. char *contract_string PROTO( (int contract) );
  60. void build_player PROTO( (RDB_PLAYER *, int, char **) );
  61. BOOL slot_add PROTO( ( RDB_SLOT *slotP ) );
  62. int slot_find PROTO( (char *slotname) );
  63. RDB_SLOT *slot_get PROTO( (int slotnum) );
  64. UWORD pos_to_mask PROTO( ( char *pos ) );
  65. char *mask_to_pos PROTO( ( UWORD posmask ) );
  66. char *mask_to_posdesc PROTO( ( UWORD posmask ) );
  67.  
  68. /* bb_pdb.c */
  69. void pdb_init PROTO( ( int firstint, int lastint ));
  70. int pdb_read PROTO( (int intN, char *fnameP) );
  71. int pdb_readpos PROTO( (char *fnameP, int mingames) );
  72. int pdb_batstats PROTO( (PDB_PNAME *nameP, int     firstint, int     lastint, PDBT_BATTER *bstatP) );
  73. int pdb_pitchstats PROTO( (PDB_PNAME *nameP, int firstint, int lastint, PDBT_PITCHER *pstatP) );
  74. int pdb_create_player PROTO( ( PDB_PNAME *nameP ) );
  75. int pdb_name PROTO( (PDB_PNAME *nameP, int     intN, PDB_PNAME *fnameP) );
  76. void pdb_walk PROTO( (int (*)( PDB_PNAME *nameP ) ) );
  77. int pdb_getpos PROTO( ( PDB_PNAME *nameP, UWORD *posP ) );
  78. int pdb_setpos PROTO( ( PDB_PNAME *nameP, UWORD pos ) );
  79.  
  80. float era PROTO( (PDBT_PITCHER     *pchP) );
  81. float ratio PROTO( (PDBT_PITCHER     *pchP) );
  82. float avg PROTO( (PDBT_BATTER     *batP) );
  83. BOOL pdb_status PROTO( (PDB_PNAME *nameP, char *st_str, char *st_date, BOOL free, int weekno ) );
  84. PDATA *pdb_pdata PROTO( (char *, char *, BOOL) );
  85.  
  86. /* standing.c */
  87. void standings PROTO( (void) );
  88. void wk_standings PROTO( (void) );
  89. void print_histogram PROTO( (FILE *fp, int weekF) );
  90.  
  91. /* avl.c */
  92. void avlnew PROTO( (AVLTREE *, int (*)(void *, void *), 
  93.  AVLNODE *(*)( AVLTREE *, void *, void *, AVLNODE * ),
  94.  int (*)( AVLTREE *, void * ) ));
  95. AVLNODE *avlfind PROTO( (AVLTREE *, void *) );
  96. void avlwalk PROTO( (AVLTREE *, int (*)( AVLTREE *, AVLNODE *, int )) );
  97. int avlinsert PROTO( (AVLTREE *, void *, void *) );
  98.  
  99. /* misc.c */
  100. void *emalloc PROTO( (char *, char *, int) );
  101.